package com.hxzy.shop.commodity.convert;

import com.hxzy.shop.commodity.dto.resp.MerchantPlugspaylogDetailResp;
import com.hxzy.shop.commodity.dto.resp.MerchantPlugspaylogResp;
import com.hxzy.shop.entity.MerchantPlugspaylog;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Description
 * @Author tu-jia-hao
 * @Data 2022/6/27 17:55
 */
@Mapper
public interface MerchantPlugspaylogConvert {
    public static MerchantPlugspaylogConvert INSTANCE=Mappers.getMapper(MerchantPlugspaylogConvert.class);

    @Mapping(target = "detailsOfCharges",ignore = true)
    MerchantPlugspaylogResp toMerchantPlugspaylogResp(MerchantPlugspaylog merchantPlugspaylog);

    MerchantPlugspaylogDetailResp toMerchantPlugspaylogDetailResp(MerchantPlugspaylog merchantPlugspaylog);

}
